<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="bean.AnimalBean" %>
<% AnimalBean now_animal = (AnimalBean)request.getAttribute("now_animal"); %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<!-- 新 Bootstrap 核心 CSS 文件 -->
<link href="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet">
<!-- 可选的Bootstrap主题文件（一般不使用） -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/css/bootstrap-theme.min.css"></script>
<!-- jQuery文件。务必在bootstrap.min.js 之前引入 -->
<script src="http://cdn.static.runoob.com/libs/jquery/2.1.1/jquery.min.js"></script>
<!-- 最新的 Bootstrap 核心 JavaScript 文件 -->
<script src="http://cdn.static.runoob.com/libs/bootstrap/3.3.7/js/bootstrap.min.js"></script>

<title><%=now_animal.getA_title()%></title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
</head>
<body>
<div style="margin-left:1%; margin-top:1%;">
    <c:if test="${now_animal.getA_status() eq '0'}">
        <c:url value="/adopt" var="adopt">
            <c:param name="a_id" value="${now_animal.getA_id()}"></c:param>
        </c:url>
        <a href="${adopt }" class="btn btn-primary" role="button">点击领养</a>
    </c:if>
    <c:if test="${now_animal.getA_status() eq '1'}">
        <a href="#" class="btn btn-primary" role="button">已被领养</a>
    </c:if>
</div>
<br>
<h1 align="center"><%=now_animal.getA_title()%></h1>
<hr />
<div style="text-align: center;">
    <img src="./images/add_cat.png"
         width="200" height="160">
</div>
<br>
<div style="text-align: center; font-family: 微软雅黑; font-size: medium">
    <h2>地区</h2>
    <p><%=now_animal.getA_location()%></p>
    <h2>年龄</h2>
    <p><%=now_animal.getA_age()%></p>
    <h2>描述</h2>
    <p><%=now_animal.getA_desc()%></p>
    <h2>联系方式</h2>
    <p>上传者: <%=now_animal.getA_auth()%></p>
    <p>联系人: <%=now_animal.getA_contact()%></p>
    <p>电话: <%=now_animal.getA_phone()%></p>
    <p>地址: <%=now_animal.getA_detail_loca()%></p>
</div>

</body>
</html>
